package com.kefu.call.vo;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.kefu.call.model.CallIvrTrail;
import com.kefu.common.context.KefuContext;
import com.kefu.common.vo.AbstractSearchVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel(description = "ivr轨迹")
public class CallIvrTrailSearchVo extends AbstractSearchVo {
    @ApiModelProperty(value = "呼叫ID")
    private String callId;

    @Override
    public LambdaQueryWrapper<CallIvrTrail> lambdaQuery() {
        LambdaQueryWrapper<CallIvrTrail> wrapper = Wrappers.lambdaQuery(CallIvrTrail.class);

        wrapper.eq(CallIvrTrail::getCallId, callId);
        wrapper.eq(CallIvrTrail::getCompany, KefuContext.getTid());
        return wrapper;
    }
}
